package com.ruoyi.web.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.wx.mapper.TrashDetailedListMapper;
import com.ruoyi.web.wx.entity.TrashDetailedList;
import com.ruoyi.web.wx.service.ITrashDetailedListService;
import com.ruoyi.common.core.text.Convert;

/**
 * 回收垃圾清单类型 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-27
 */
@Service("trashDetailedType")
public class TrashDetailedListServiceImpl implements ITrashDetailedListService 
{
	@Autowired
	private TrashDetailedListMapper trashDetailedListMapper;

	/**
     * 查询回收垃圾清单类型信息
     * 
     * @param id 回收垃圾清单类型ID
     * @return 回收垃圾清单类型信息
     */
    @Override
	public TrashDetailedList selectTrashDetailedListById(String id)
	{
	    return trashDetailedListMapper.selectTrashDetailedListById(id);
	}
	
	/**
     * 查询回收垃圾清单类型列表
     * 
     * @param trashDetailedList 回收垃圾清单类型信息
     * @return 回收垃圾清单类型集合
     */
	@Override
	public List<TrashDetailedList> selectTrashDetailedListList(TrashDetailedList trashDetailedList)
	{
	    return trashDetailedListMapper.selectTrashDetailedListList(trashDetailedList);
	}
	
    /**
     * 新增回收垃圾清单类型
     * 
     * @param trashDetailedList 回收垃圾清单类型信息
     * @return 结果
     */
	@Override
	public int insertTrashDetailedList(TrashDetailedList trashDetailedList)
	{
	    return trashDetailedListMapper.insertTrashDetailedList(trashDetailedList);
	}
	
	/**
     * 修改回收垃圾清单类型
     * 
     * @param trashDetailedList 回收垃圾清单类型信息
     * @return 结果
     */
	@Override
	public int updateTrashDetailedList(TrashDetailedList trashDetailedList)
	{
	    return trashDetailedListMapper.updateTrashDetailedList(trashDetailedList);
	}

	/**
     * 删除回收垃圾清单类型对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTrashDetailedListByIds(String ids)
	{
		return trashDetailedListMapper.deleteTrashDetailedListByIds(Convert.toStrArray(ids));
	}
	
}
